package com.myproject.mall.common.constants;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum GlobalCode {
    SUCCESS(200, "成功"),
    FAIL(400, "失败"),
    NOT_FOUND(401, "未找到"),
    UNAUTHORIZED(402, "未授权"),
    FORBIDDEN(403, "禁止访问"),
    TOKEN_EXPIRED(404, "token已过期"),
    USER_NOT_FOUND(405, "用户不存在"),

    ;

    private final Integer code;
    private final String message;
}
